#ifndef USER_H
#define USER_H


#include <QString>
#include <QtSql/QSqlQuery>

class User
{
public:
    User(int id, const QString &password, const QString &name, const QString &signature, const QString &ip);

    int getId() const;
    QString getPassword() const;
    QString getName() const;
    QString getSignature() const;
    QString getIP() const;

    void setId(int id);
    void setPassword(const QString &password);
    void setName(const QString &name);
    void setSignature(const QString &signature);
    void setIP(const QString &ip);
private:
    int m_id;
    QString m_password;
    QString m_name;
    QString m_signature;
    QString m_ip;
    QSqlDatabase db;
};

#endif // USER_H
